﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Quickuse.Logging
{
    /// <summary>
    /// 内部log
    /// </summary>
    internal class InternalLog
    {
        /// <summary>
        /// 错误日志
        /// </summary>
        /// <param name="content"></param>
        public static void Error(string content)
        {
            Console.WriteLine($"[ERROR][{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")}][{content}]");
        }

        /// <summary>
        /// 错误日志
        /// </summary>
        /// <param name="exception"></param>
        public static void Error(Exception exception)
        {
            Error(exception.ToString());
        }

        /// <summary>
        /// 信息日志
        /// </summary>
        /// <param name="content"></param>
        public static void Info(string content)
        {
            Console.WriteLine($"[INFO][{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")}][{content}]");
        }
    }
}
